package com.zmzncs.lmtc.module.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.system.pojo.user.User;
import com.zmzncs.lmtc.module.system.pojo.user.UserDTO;
import com.zmzncs.lmtc.module.system.pojo.user.UserSearchFrom;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2019-09-10
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    /** 获取人员列表 */
    IPage<UserDTO> getUserList(Page page, @Param("form") UserSearchFrom form);
    /**根据角色id查询用户*/
    List<UserDTO> getUserByRoleId(Long roleId);
    /**根据账号查询用户*/
    UserDTO getByAccount(String account);

}
